package com.design.mode.aop;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @ClassName AppConfig
 * @Description TODO
 * @Author xiongchao
 * @Date 2020/10/10 13:55
 **/
@Configuration
@ComponentScan(basePackageClasses = {com.design.mode.aop.IBuy.class})
//开启切入
@EnableAspectJAutoProxy(proxyTargetClass = true)


/**
 *   EnableAspectJAutoProxy 默认为false  没有开启切入点 需要手动设置为true
 */
public class AppConfig {
}
